﻿<View BaseViewID="0" FreeForm="TRUE" Type="HTML">
  <ViewHeader>
    <HTML><![CDATA[<TABLE width="100%" cellspacing=0 cellpadding=0 border=0>]]></HTML>
    <HTML>
      <![CDATA[<SCRIPT>
ctx = new ContextInfo();
ctx.listBaseType = ]]>
    </HTML>
    <ListProperty Select="BaseType" />
    <HTML>
      <![CDATA[;
ctx.listTemplate = ]]>
    </HTML>
    <ListProperty Select="ServerTemplate" />
    <HTML>
      <![CDATA[;
ctx.listName = ]]>
    </HTML>
    <ScriptQuote>
      <List />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.view = ]]>
    </HTML>
    <ScriptQuote>
      <GetVar Name="View" />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.listUrlDir = ]]>
    </HTML>
    <ScriptQuote>
      <ListUrlDir ServerRel="TRUE" URLEncodeAsURL="TRUE" />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.HttpPath = ]]>
    </HTML>
    <ScriptQuote>
      <HttpPath ServerRel="TRUE" />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.HttpRoot = ]]>
    </HTML>
    <ScriptQuote>
      <HttpVDir />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.imagesPath = ]]>
    </HTML>
    <ScriptQuote>/_layouts/images/</ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.PortalUrl = ]]>
    </HTML>
    <ScriptQuote>
      <ProjectProperty Select="PortalUrl" />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.SendToLocationName = ]]>
    </HTML>
    <ScriptQuote>
      <ListProperty Select="SendToLocationName" />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.SendToLocationUrl = ]]>
    </HTML>
    <ScriptQuote>
      <ListProperty Select="SendToLocationUrl" />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.RecycleBinEnabled = ]]>
    </HTML>
    <ProjectProperty Select="RecycleBinEnabled" />
    <HTML>
      <![CDATA[;
ctx.OfficialFileName = ]]>
    </HTML>
    <ScriptQuote>
      <ServerProperty Select="OfficialFileName" />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.WriteSecurity = ]]>
    </HTML>
    <ScriptQuote>
      <ListProperty Select="WriteSecurity" />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.SiteTitle = ]]>
    </HTML>
    <ScriptQuote>
      <ProjectProperty Select="Title" />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.ListTitle = ]]>
    </HTML>
    <ScriptQuote>
      <ListProperty Select="Title" />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
if (ctx.PortalUrl == "") ctx.PortalUrl = null;
ctx.displayFormUrl = ]]>
    </HTML>
    <ScriptQuote>
      <URL Cmd="DISPLAY" NoID="TRUE" />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.editFormUrl = ]]>
    </HTML>
    <ScriptQuote>
      <URL Cmd="EDIT" NoID="TRUE" />
    </ScriptQuote>
    <HTML>
      <![CDATA[;
ctx.isWebEditorPreview = ]]>
    </HTML>
    <Switch>
      <Expr>
        <GetVar Name="WebEditorPreview" />
      </Expr>
      <Case Value="TRUE">1</Case>
      <Default>0</Default>
    </Switch>
    <HTML>
      <![CDATA[;
ctx.ctxId = ]]>
    </HTML>
    <Counter Type="View" />
    <HTML>
      <![CDATA[;
g_ViewIdToViewCounterMap[ ]]>
    </HTML>
    <ScriptQuote>
      <GetVar Name="View" />
    </ScriptQuote>
    <HTML><![CDATA[ ]= ]]></HTML>
    <Counter Type="View" />
    <HTML>
      <![CDATA[;
ctx.CurrentUserId = ]]>
    </HTML>
    <UserID AllowAnonymous="TRUE" />
    <HTML>
      <![CDATA[;
]]>
    </HTML>
    <Switch>
      <Expr>
        <ListProperty Select="ModeratedList" />
      </Expr>
      <Case Value="1">
        ctx.isModerated = true;
      </Case>
    </Switch>
    <Switch>
      <Expr>
        <ListProperty Select="ForceCheckout" />
      </Expr>
      <Case Value="1">
        ctx.isForceCheckout = true;
      </Case>
    </Switch>
    <Switch>
      <Expr>
        <ListProperty Select="EnableMinorVersions" />
      </Expr>
      <Case Value="1">
        ctx.EnableMinorVersions = true;
      </Case>
    </Switch>
    <Switch>
      <Expr>
        <ListProperty Select="VersioningEnabled" />
      </Expr>
      <Case Value="1">
        ctx.verEnabled = 1;
      </Case>
    </Switch>
    <Switch>
      <Expr>
        <GetVar Name="RecursiveView" />
      </Expr>
      <Case Value="1">
        ctx.recursiveView = true;
      </Case>
    </Switch>
    <Switch>
      <Expr>
        <ListProperty Select="WorkflowsAssociated" />
      </Expr>
      <Case Value="1">
        ctx.WorkflowsAssociated = true;
      </Case>
    </Switch>
    <Switch>
      <Expr>
        <ListProperty Select="EnableContentTypes" />
      </Expr>
      <Case Value="1">
        ctx.ContentTypesEnabled = true;
      </Case>
    </Switch>
    <HTML>
      <![CDATA[ 
ctx]]>
    </HTML>
    <Counter Type="View" />
    <HTML>
      <![CDATA[ = ctx;
</SCRIPT>]]>
    </HTML>
    <Switch>
      <Expr>
        <ListProperty Select="Direction" />
      </Expr>
      <Case Value="ltr">
        <HTML><![CDATA[<SCRIPT>FixTextAlignForBidi("left");</SCRIPT>]]></HTML>
      </Case>
      <Case Value="rtl">
        <HTML><![CDATA[<SCRIPT>FixTextAlignForBidi("right");</SCRIPT>]]></HTML>
      </Case>
    </Switch>
    <HTML><![CDATA[<tr><td>]]></HTML>
    <!--Read / Unread modification adds our javascript-->
    <SetVar Name="ReadUnreadSummaryHack" Scope="Request" Value="1"/>

    <HTML>
      <![CDATA[<div style="width: 100%; position: relative; left: 0; top: 0;">]]>
    </HTML>
    <HTML>
      <!--Start column javascript functions -->
      <![CDATA[<script type="text/javascript"> ]]>
      <!--Start setFontOnTagAndAllChildTags -->
      <![CDATA[function setFontOnTagAndAllChildTags(parentTag, fontValue){]]>
      <![CDATA[try{parentTag.style.fontWeight = fontValue;}catch(e){}]]>
      <![CDATA[var childCount = parentTag.childNodes.length;]]>
      <![CDATA[for(var i=0; i< childCount ; i++)]]>
      <![CDATA[{setFontOnTagAndAllChildTags(parentTag.childNodes[i],fontValue);}}]]>
      <!--Start setColorOnTagAndAllChildTags -->
      <![CDATA[function setColorOnTagAndAllChildTags(parentTag, colorValue){]]>
      <![CDATA[try{parentTag.style.color = colorValue;parentTag.style.fontWeight = "bolder";}catch(e){}]]>
      <![CDATA[var childCount = parentTag.childNodes.length;]]>
      <![CDATA[for(var i=0; i< childCount ; i++)]]>
      <![CDATA[{setColorOnTagAndAllChildTags(parentTag.childNodes[i],colorValue);}}]]>
      <!--Start markRowAsUnread -->
      <![CDATA[function markRowAsUnread(divMarkerId, rowColor){]]>
      <![CDATA[var divTag = document.getElementById(divMarkerId);]]>
      <![CDATA[var divRow = divTag.parentNode.parentNode;]]>
      <![CDATA[var rowColor ="]]>
    </HTML>
    <FieldProperty Name="RUMarks" Select="UnreadHTMLColor" />
    <HTML>
      <![CDATA[";]]>
      <![CDATA[if (rowColor != "") {setColorOnTagAndAllChildTags(divRow,rowColor);}else{]]>
      <![CDATA[setFontOnTagAndAllChildTags(divRow,"bolder");}}]]>
      <!--Start markRowAsRead -->
      <![CDATA[function markRowAsRead(divMarkerId){]]>
      <![CDATA[var divTag = document.getElementById(divMarkerId);]]>
      <![CDATA[var divRow = divTag.parentNode.parentNode;]]>
      <![CDATA[setFontOnTagAndAllChildTags(divRow,"normal");}]]>
      <!--Start inline_ReadUnReadCheckBox_onclick -->
      <!--Start inline_MarkReadOrUnread -->
      <![CDATA[function MarkItemReadOrUnread(readMark,cBox,itemID,divMarkerId){]]>
      <![CDATA[var requestURL = ctx.HttpRoot + "/_Layouts/VERSION3/LazyReadUnReadUpdate.aspx";]]>
      <![CDATA[requestURL += "?iID=" + itemID;]]>
      <![CDATA[requestURL += "&lID=" + ctx.listName;]]>
      <![CDATA[requestURL += "&nValue=" + readMark;]]>
      <![CDATA[requestURL += "&pName=]]>
    </HTML>
    <FieldProperty Name="RUMarks" Select="Name" />
    <HTML>
      <![CDATA[";requestURL += "&mWD=]]>
    </HTML>
    <FieldProperty Name="RUMarks" Select="WriteDirect" />
    <HTML>
      <![CDATA[";]]>
      <!--<![CDATA[window.open(requestURL);}]]>-->
      <![CDATA[var httpRequest = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP.3.0");]]>
      <![CDATA[httpRequest.onreadystatechange = function(){]]>
      <![CDATA[if (4 ==httpRequest.readyState){]]>
      <![CDATA[if ("read" == httpRequest.responseText ){if(null != cBox)cBox.checked=true;markRowAsRead(divMarkerId);}]]>
      <![CDATA[else{if ("unread" == httpRequest.responseText ){if(null != cBox)cBox.checked=false;markRowAsUnread(divMarkerId);}else{if(null != cBox)cBox.checked=!cBox.checked;}}]]>
      <![CDATA[}};httpRequest.open("GET", requestURL, true);httpRequest.send(null);}]]>
      <![CDATA[</script >]]>
    </HTML>
    <HTML>
      <![CDATA[</div>]]>
    </HTML>
    <!-- End changes -->
    <HTML><![CDATA[<TABLE ID="]]></HTML>
    <WebQueryInfo />
    <HTML>
      <![CDATA[" class="ms-summarycustombody" cellpadding=0 cellspacing=0 border=0>
                    ]]>
    </HTML>
    <SetVar Name="FreeForm" Scope="Request" Value="TRUE" />
  </ViewHeader>
  <ViewBody>
    <HTML>
      <![CDATA[
                        <TR><TD width=80% class="ms-vb" style="padding-bottom: 3px"><span class="ms-announcementtitle">
                    ]]>
    </HTML>
    <Field Name="LinkTitleNoMenu" />
    <HTML><![CDATA[&nbsp;]]></HTML>
    <Field Name="Attachments" />
    <HTML><![CDATA[</span><br>]]></HTML>
    <HTML>$Resources:2000;</HTML>
    <Field Name="Author" />
    <HTML><![CDATA[</td><td width=20% align="]]></HTML>
    <HTML>$Resources:align-right;</HTML>
    <HTML><![CDATA[" nowrap class="ms-vb">&nbsp;&nbsp;]]></HTML>
    <Field Name="Modified" />
    <!--Read / Unread modification -->
    <HTML><![CDATA[</td><td align="center" valign= "top">]]></HTML>
    <Field Name="RUMarks" />
    <HTML><![CDATA[</td>]]></HTML>
    <HTML><![CDATA[</tr><tr><td colspan=3 class="ms-vb"> ]]></HTML>
    <!-- End changes -->
    <Switch>
      <Expr>
        <FieldProperty Name="Body" Select="RichText" />
      </Expr>
      <Case Value="TRUE">
        <HTML><![CDATA[<div id=]]></HTML>
        <ScriptQuote>
          <ListProperty Select="Name" />
          <Column Name="ID" />
        </ScriptQuote>
        <HTML>
          <![CDATA[></div>
                            <script>
                            document.getElementById(]]>
        </HTML>
        <ScriptQuote>
          <ListProperty Select="Name" />
          <Column Name="ID" />
        </ScriptQuote>
        <HTML><![CDATA[).innerHTML = ]]></HTML>
        <ScriptQuote>
          <Switch>
            <Expr>
              <FieldProperty Name="Body" Select="RichTextMode" />
            </Expr>
            <Case Value="FullHtml">
              <Limit Len="250" IgnoreTags="TRUE" MoreText="...">
                <Column Name="Body" />
              </Limit>
            </Case>
            <Default>
              <Limit Len="250" AutoHyperLinkNoEncoding="TRUE" MoreText="...">
                <Column Name="Body" />
              </Limit>
            </Default>
          </Switch>
        </ScriptQuote>
        <HTML>
          <![CDATA[;
                            </script>]]>
        </HTML>
      </Case>
      <Default>
        <Limit Len="250" MoreText="..." AutoHyperLink="TRUE" AutoNewLine="TRUE">
          <Column Name="Body" />
        </Limit>
      </Default>
    </Switch>
    <Fields>
      <HTML><![CDATA[<BR>]]></HTML>
      <Property Select="DisplayName" HTMLEncode="TRUE" />
      <HTML><![CDATA[: ]]></HTML>
      <Field />
    </Fields>
    <HTML>
      <![CDATA[
                        </TD></TR><TR><TD><font size=1>&nbsp;</font></TD></TR>
                    ]]>
    </HTML>
  </ViewBody>
  <ViewFooter>
    <HTML><![CDATA[</table>]]></HTML>
    <HTML><![CDATA[</td></tr></table>]]></HTML>
  </ViewFooter>
  <Toolbar Position="After" Type="Freeform">
    <IfHasRights>
      <RightsChoices>
        <RightsGroup PermAddListItems="required" />
      </RightsChoices>
      <Then>
        <HTML><![CDATA[ <table width=100% cellpadding=0 cellspacing=0 border=0 > <tr> <td colspan="2" class="ms-partline"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td> </tr> <tr> <td class="ms-addnew" style="padding-bottom: 3px"> <img src="/_layouts/images/rect.gif" alt="">&nbsp;<a class="ms-addnew" ID="Add new announcement" href="]]></HTML>
        <URL Cmd="New" />
        <HTML><![CDATA[" ONCLICK="javascript:NewItem(']]></HTML>
        <URL Cmd="New" />
        <HTML><![CDATA[', true);javascript:return false;" target="_self">]]></HTML>
        <HTML>
          <!-- _locID_text="onetid6" _locComment="{StringCategory=HTX}" -->$Resources:idHomePageNewAnnounce
        </HTML>
        <HTML><![CDATA[</a> </td> </tr> <tr><td><IMG SRC="/_layouts/images/blank.gif" width=1 height=5 alt=""></td></tr> </table>]]></HTML>
      </Then>
    </IfHasRights>
  </Toolbar>
  <RowLimitExceeded>
    <HTML>
      <![CDATA[<table class="ms-summarycustombody" cellpadding=0 cellspacing=0 border=0>
					<TR><TD Class="ms-vb">
					<a href="]]>
    </HTML>
    <ListProperty Select="DefaultViewUrl" />
    <HTML>
      <![CDATA[" ID=onetidMoreAnn>
					]]>
    </HTML>
    <HTML>$Resources:MoreAnnouncements;</HTML>
    <HTML>
      <![CDATA[
					</a></TD></TR>
                    <tr><td height="8"><IMG SRC="/_layouts/images/blank.gif" width=1 height=8 alt=""></td></tr></table>
					]]>
    </HTML>
  </RowLimitExceeded>
  <ViewEmpty>
    <HTML>
      <![CDATA[
                       <TABLE class="ms-summarycustombody" cellpadding=0 cellspacing=0 border=0><TR><TD class="ms-vb">]]>
    </HTML>
    <HTML>$Resources:NoAnnouncements;</HTML>
    <IfHasRights>
      <RightsChoices>
        <RightsGroup PermAddListItems="required" />
      </RightsChoices>
      <Then>
        <HTML> $Resources:core,NoAnnouncementsHowTo;</HTML>
      </Then>
    </IfHasRights>
    <HTML>
      <![CDATA[
                        </TD></TR><tr><td height="5"><IMG SRC="/_layouts/images/blank.gif" width=1 height=5 alt=""></td></tr></TABLE>
        ]]>
    </HTML>
  </ViewEmpty>
  <Query>
    <Where>
      <Or>
        <IsNull>
          <FieldRef Name="Expires" />
        </IsNull>
        <Geq>
          <FieldRef Name="Expires">
          </FieldRef>
          <Value Type="DateTime">
            <Today>
            </Today>
          </Value>
        </Geq>
      </Or>
    </Where>
    <OrderBy>
      <FieldRef Name="Modified" Ascending="FALSE">
      </FieldRef>
    </OrderBy>
  </Query>
  <ViewFields>
    <FieldRef Name="LinkTitleNoMenu" Explicit="TRUE">
    </FieldRef>
    <FieldRef Name="Body" Explicit="TRUE">
    </FieldRef>
    <FieldRef Name="Author" Explicit="TRUE">
    </FieldRef>
    <FieldRef Name="Modified" Explicit="TRUE">
    </FieldRef>
    <FieldRef Name="Attachments" Explicit="TRUE">
    </FieldRef>
    <!--Read / Unread modification-->
    <FieldRef Name="RUMarks" Explicit="TRUE">
    </FieldRef>
    <!-- End changes -->
  </ViewFields>
  <RowLimit>5</RowLimit>
</View>
